.el-select {
  display: inline-block;
  position: relative;
  width: 360px;

  .el-input {
    width: 100%;
  }

  .el-input__prefix,
  .el-input__suffix {
    position: absolute;
    top: 0;
    -webkit-transition: all 0.3s;
    height: 100%;
    text-align: center;
  }

  .el-input__suffix-inner {
    pointer-events: all;
  }
  .el-select__caret {
    color: #c0c4cc;
    font-size: 14px;
    transition: transform 0.3s;
    transform: rotateZ(0deg);
    cursor: pointer;
  }

  .el-input__icon {
    height: 100%;
    width: 11px;
    text-align: center;
    transition: all 0.3s;
    line-height: 40px;
  }

  .el-select__tags {
    position: absolute;
    line-height: normal;
    white-space: normal;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    .el-select__input {
      border: none;
      outline: none;
      padding: 0;
      margin-left: 10px;
      color: #1c2438;
      font-size: 14px;
      appearance: none;
      height: 28px;
      background-color: transparent;
    }
  }

  &.el-select--medium {
    width: 200px;

    .el-input__inner {
      line-height: 32px;
      height: 32px;
    }
  }

  &.el-select--small {
    width: 100px;

    .el-input__inner {
      line-height: 28px;
      height: 28px;
    }
  }

  &:hover {
    .el-input__inner {
      border: 1px solid #2b74ff;
    }
  }
}

.el-select-dropdown {
  position: absolute;
  z-index: 1001;
  border: 1px solid #e5e7ee;
  border-radius: 4px;
  background-color: #fff;
  @include box-shadow(0 2px 9px 0 #eef0f7);
  margin: 5px 0;

  .el-select-dropdown__wrap {
    max-height: 300px;
  }

  &.el-popper[x-placement^="top"],
  &.el-popper[x-placement^="bottom"] {
    margin-bottom: 5px;
  }

  .popper__arrow {
    display: none;
  }

  .el-select-dropdown__list {
    padding: 5px 0;
    margin: 0;
  }

  .el-select-dropdown__item {
    font-size: 12px;
    padding: 0 10px;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #495060;
    height: 32px;
    line-height: 32px;
    box-sizing: border-box;
    cursor: pointer;

    &.hover {
      background-color: #f0f5ff;
    }

    &.selected {
      color: #2b74ff;
    }
  }

  .el-select-dropdown__empty {
    padding: 0 10px;
    margin: 0;
    text-align: left;
    color: #495060;
    font-size: 12px;
    height: 32px;
    line-height: 32px;
  }
}
.el-select__tags {
  position: absolute;
  line-height: normal;
  white-space: normal;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-height: 28px;
  max-width: 280px;
  overflow: hidden;
}
.el-select .el-select__tags>span {
  display: contents;
}
.el-tag.el-tag--info {
  background-color: #F6F7FB;
  border-color: #F6F7FB;
  color: $font-color;
}
.el-select .el-tag {
  box-sizing: border-box;
  border-color: transparent;
  margin: 2px 0 2px 6px;
  background-color: #F6F7FB;
}
.el-tag--small {
  height: 24px;
  padding: 0 8px;
  line-height: 22px;
}
.el-tag {
  background-color: #F6F7FB;
  display: inline-block;
  height: 24px;
  padding: 0 10px;
  line-height: 24px;
  font-size: 12px;
  color: #409eff;
  border: 1px solid #F6F7FB;
  border-radius: 3px;
  box-sizing: border-box;
  white-space: nowrap;
}
.el-tag.el-tag--info .el-tag__close {
  color: #909399;
}
.el-select .el-tag__close.el-icon-close {
  background-color: #F6F7FB;
}
.el-tag--small .el-icon-close {
  transform: scale(.8);
}
.el-tag .el-icon-close {
  border-radius: 50%;
  text-align: center;
  position: relative;
  cursor: pointer;
  font-size: 12px;
  line-height: 16px;
  vertical-align: middle;
  top: 0;
  right: -5px;
  height: 14px;
  width: 14px;
  border: 1px solid #9E9E9E;
}
.el-tag .el-tag__close {
  color: $main-color;
}

.el-select .el-tag__close {
  margin-top: -2px;
}
.el-select .el-tag__close.el-icon-close:before {
  display: block;
  transform: translateY(.5px);
}
.el-tag .el-icon-close:before {
  display: block;
}
.el-icon-close {
  background-size: 55%;
}
.el-select__tags_count{
  font-size: 12px;
  color: $main-color;
  width: 55px;height: 16px;
  text-align: center;
  line-height: 16px;
  position: absolute;
  top: 10px;right: 28px;
  z-index: 10;
}
.is-multiple .el-select-dropdown__list{
  li span{
    margin-left: 20px;
  }
  .el-checkbox{
    margin-right: 0;
    span{
      margin: 0;
    }
    .el-checkbox__inner{
      top: 9px;
    }
  }
}
